package fr.emn.nuitinfo.web.resources;

import org.restlet.resource.Get;
import org.restlet.resource.Post;
import org.restlet.resource.ServerResource;

import fr.emn.nuitinfo.model.persistence.FactoryDAO;

public class EvaluationsResource extends ServerResource {

	@Get
	public String retrieve() {
		return FactoryDAO.getEvaluationDAO().retrieveAll().toString();
	}

	@Post
	public void create(String evaluation) {
		FactoryDAO.getEvaluationDAO().create(evaluation);
	}
}
